TableFieldSchema.fromJson constructor

TableFieldSchema.fromJson(
  1. Map json_
)

Implementation

TableFieldSchema.fromJson(core.Map json_)
    : this(
        field:
            json_.containsKey('field') ? json_['field'] as core.String : null,
        fields: json_.containsKey('fields')
            ? (json_['fields'] as core.List)
                .map((value) => TableFieldSchema.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        mode: json_.containsKey('mode') ? json_['mode'] as core.String : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );