FieldReferenceData.fromJson constructor
Implementation
factory FieldReferenceData.fromJson(Map<String, Object?> json) {
return FieldReferenceData(
auto: json[r'auto'] != null
? FieldReferenceDataAuto.fromValue(json[r'auto']! as String)
: null,
cfid: json[r'cfid'] as String?,
deprecated: json[r'deprecated'] != null
? FieldReferenceDataDeprecated.fromValue(
json[r'deprecated']! as String)
: null,
deprecatedSearcherKey: json[r'deprecatedSearcherKey'] as String?,
displayName: json[r'displayName'] as String?,
operators: (json[r'operators'] as List<Object?>?)
?.map((i) => i as String? ?? '')
.toList() ??
[],
orderable: json[r'orderable'] != null
? FieldReferenceDataOrderable.fromValue(json[r'orderable']! as String)
: null,
searchable: json[r'searchable'] != null
? FieldReferenceDataSearchable.fromValue(
json[r'searchable']! as String)
: null,
types: (json[r'types'] as List<Object?>?)
?.map((i) => i as String? ?? '')
.toList() ??
[],
value: json[r'value'] as String?,
);
}