Skip to content

Commit

Permalink
[feenkcom/gtoolkit#4072] Use string keys in json dictionaries
Browse files Browse the repository at this point in the history
  • Loading branch information
akgrant43 committed Nov 15, 2024
1 parent 9085856 commit 29aff8b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions src/GToolkit-GemStone/GtGemStoneMethodSpecification.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -139,16 +139,16 @@ GtGemStoneMethodSpecification >> initializeFromJSONDictionary: aDictionary [
super initializeFromJSONDictionary: aDictionary.

self
initializeForClassName: (aDictionary at: 'coderClassName')
iconName: (aDictionary at: 'coderClassIconName' ifAbsent: [ nil ])
isMeta: (aDictionary at: 'isMeta')
categoryName: (aDictionary at: 'categoryName')
selector: (aDictionary at: 'selector')
sourceString: (aDictionary at: 'sourceString')
protocolName: (aDictionary at: 'protocolName')
explicitProvider: ((aDictionary includesKey: 'explicitProviderBehaviourDetails')
initializeForClassName: (aDictionary at: #coderClassName)
iconName: (aDictionary at: #coderClassIconName ifAbsent: [ nil ])
isMeta: (aDictionary at: #isMeta)
categoryName: (aDictionary at: #categoryName)
selector: (aDictionary at: #selector)
sourceString: (aDictionary at: #sourceString)
protocolName: (aDictionary at: #protocolName)
explicitProvider: ((aDictionary includesKey: #explicitProviderBehaviourDetails)
ifTrue: [ GtGemStoneClassBasicDetails fromJSONDictionary: (
aDictionary at: 'explicitProviderBehaviourDetails')]
aDictionary at: #explicitProviderBehaviourDetails)]
ifFalse: [ nil ])
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ GtGemStoneMethodsSpecification >> initializeForGsMethods: aCollectionOfGsMethods
GtGemStoneMethodsSpecification >> initializeFromJSONDictionary: aDictionary [
super initializeFromJSONDictionary: aDictionary.

methodCoderSpecifications := (aDictionary at: 'methodCoderSpecifications')
methodCoderSpecifications := (aDictionary at: #methodCoderSpecifications)
collect: [ :aCoderJsonData |
self instantiateCoderSpecificationFromJsonData: aCoderJsonData ]
]
Expand Down

0 comments on commit 29aff8b

Please sign in to comment.