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'] as String),
      label: json['label'] as String?,
      changeMessage: json['changeMessage'] as String?,
      textAlignment:
          MaybeDecode.maybeTextAlign(json['textAlignment'] as String?),
      attributedValue: json['attributedValue'] == null
          ? null
          : DictionaryValue.parse(json['attributedValue'] as String),
    );