CompanionSetting.fromJson constructor
CompanionSetting.fromJson(
- Map json_
Implementation
CompanionSetting.fromJson(core.Map json_)
: this(
companionsDisabled: json_.containsKey('companionsDisabled')
? json_['companionsDisabled'] as core.bool
: null,
enabledSizes: json_.containsKey('enabledSizes')
? (json_['enabledSizes'] as core.List)
.map((value) => Size.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
imageOnly: json_.containsKey('imageOnly')
? json_['imageOnly'] as core.bool
: null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
);