SiteCompanionSetting.fromJson constructor

SiteCompanionSetting.fromJson(
  1. Map json_
)

Implementation

SiteCompanionSetting.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,
      );