PasskitStructure.fromJson constructor
PasskitStructure.fromJson(
- Map<String, dynamic> json
)
Implementation
factory PasskitStructure.fromJson(Map<String, dynamic> json) {
return PasskitStructure(
auxiliaryFields: (json['auxiliaryFields'] as List<dynamic>?)
?.map((e) => PasskitField.fromJson(e as Map<String, dynamic>))
.toList(),
headerFields: (json['headerFields'] as List<dynamic>?)
?.map((e) => PasskitField.fromJson(e as Map<String, dynamic>))
.toList(),
secondaryFields: (json['secondaryFields'] as List<dynamic>?)
?.map((e) => PasskitField.fromJson(e as Map<String, dynamic>))
.toList(),
backFields: (json['backFields'] as List<dynamic>?)
?.map((e) => PasskitField.fromJson(e as Map<String, dynamic>))
.toList(),
primaryFields: (json['primaryFields'] as List<dynamic>?)
?.map((e) => PasskitField.fromJson(e as Map<String, dynamic>))
.toList(),
transitType: json['transitType'],
);
}