DictionaryField.fromJson constructor

DictionaryField.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory DictionaryField.fromJson(Map<String, Object?> json) =>
    DictionaryField(
      key: json['key'] as String,
      value: DictionaryValue.parse(json['value'].toString()),
      attributedValue: json['attributedValue'] == null
          ? null
          : DictionaryValue.parse(json['attributedValue'] as String),
      label: json['label'] as String?,
      changeMessage: json['changeMessage'] as String?,
      textAlignment:
          MaybeDecode.maybeTextAlign(json['textAlignment'] as String?),
      numberStyle:
          MaybeDecode.maybeNumberStyle(json['numberStyle'] as String?),
      currencyCode: json['currencyCode'] as String?,
      dateStyle: MaybeDecode.maybeDateStyle(json['dateStyle'] as String?),
      timeStyle: MaybeDecode.maybeDateStyle(json['timeStyle'] as String?),
      ignoresTimeZone: json['ignoresTimeZone'] == true ? true : false,
    );