NiceSchemaField.fromJson constructor

NiceSchemaField.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory NiceSchemaField.fromJson(Map<String, dynamic> json) {
  return NiceSchemaField(
    name: json['name'] as String,
    type: json['type'] as String,
    required: json['required'] as bool? ?? false,
    defaultValue: json['default'],
    description: json['description'] as String?,
  );
}