mapKind static method

FieldKind? mapKind(
  1. String? kind
)

Implementation

static FieldKind? mapKind(String? kind) {
  switch (kind) {
    case 'Number':
      return FieldKind.number;
    case 'Currency':
      return FieldKind.currency;
    case 'EmailAddress':
      return FieldKind.emailAddress;
    case 'Url':
      return FieldKind.url;
    case 'PhoneNumber':
      return FieldKind.phoneNumber;
    default:
      return null;
  }
}