fromJson static method

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

Implementation

static FieldDescriptor fromJson(Map<String, Object?> json) => FieldDescriptor(
  json['key']! as String,
  json['label']! as String,
  kind: FieldKind.byName(json['kind'] as String? ?? 'text'),
  primary: json['primary'] == true,
);