FieldMetadata.fromJson constructor
Implementation
factory FieldMetadata.fromJson(Map<String, Object?> json) {
return FieldMetadata(
allowedValues:
(json[r'allowedValues'] as List<Object?>?)?.map((i) => i).toList() ??
[],
autoCompleteUrl: json[r'autoCompleteUrl'] as String?,
configuration: json[r'configuration'] as Map<String, Object?>?,
defaultValue: json[r'defaultValue'],
hasDefaultValue: json[r'hasDefaultValue'] as bool? ?? false,
key: json[r'key'] as String? ?? '',
name: json[r'name'] as String? ?? '',
operations: (json[r'operations'] as List<Object?>?)
?.map((i) => i as String? ?? '')
.toList() ??
[],
required: json[r'required'] as bool? ?? false,
schema: JsonTypeBean.fromJson(
json[r'schema'] as Map<String, Object?>? ?? const {}),
);
}