TextModuleData.fromJson constructor

TextModuleData.fromJson(
  1. Map json_
)

Implementation

TextModuleData.fromJson(core.Map json_)
    : this(
        body: json_.containsKey('body') ? json_['body'] as core.String : null,
        header: json_.containsKey('header')
            ? json_['header'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        localizedBody: json_.containsKey('localizedBody')
            ? LocalizedString.fromJson(
                json_['localizedBody'] as core.Map<core.String, core.dynamic>)
            : null,
        localizedHeader: json_.containsKey('localizedHeader')
            ? LocalizedString.fromJson(json_['localizedHeader']
                as core.Map<core.String, core.dynamic>)
            : null,
      );