PassStructureDictionary.fromJson constructor

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

Implementation

factory PassStructureDictionary.fromJson(Map<String, Object?> json) =>
    PassStructureDictionary(
      headerFields: (json['headerFields'] as List?)
              ?.map((i) => DictionaryField.fromJson(i))
              .toList() ??
          [],
      primaryFields: (json['primaryFields'] as List?)
              ?.map((i) => DictionaryField.fromJson(i))
              .toList() ??
          [],
      secondaryFields: (json['secondaryFields'] as List?)
              ?.map((i) => DictionaryField.fromJson(i))
              .toList() ??
          [],
      backFields: (json['backFields'] as List?)
              ?.map((i) => DictionaryField.fromJson(i))
              .toList() ??
          [],
      auxiliaryFields: (json['auxiliaryFields'] as List?)
              ?.map((i) => DictionaryField.fromJson(i))
              .toList() ??
          [],
      transitType: _TarnsitType.parse(json['transitType'] as String?),
    );