TableFieldSchema.fromJson constructor
TableFieldSchema.fromJson(
- Map json_
Implementation
TableFieldSchema.fromJson(core.Map json_)
: this(
categories: json_.containsKey('categories')
? TableFieldSchemaCategories.fromJson(
json_['categories'] as core.Map<core.String, core.dynamic>)
: null,
collation: json_.containsKey('collation')
? json_['collation'] as core.String
: null,
defaultValueExpression: json_.containsKey('defaultValueExpression')
? json_['defaultValueExpression'] as core.String
: null,
description: json_.containsKey('description')
? json_['description'] 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,
foreignTypeDefinition: json_.containsKey('foreignTypeDefinition')
? json_['foreignTypeDefinition'] as core.String
: null,
maxLength: json_.containsKey('maxLength')
? json_['maxLength'] as core.String
: null,
mode: json_.containsKey('mode') ? json_['mode'] as core.String : null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
policyTags: json_.containsKey('policyTags')
? TableFieldSchemaPolicyTags.fromJson(
json_['policyTags'] as core.Map<core.String, core.dynamic>)
: null,
precision: json_.containsKey('precision')
? json_['precision'] as core.String
: null,
rangeElementType: json_.containsKey('rangeElementType')
? TableFieldSchemaRangeElementType.fromJson(
json_['rangeElementType']
as core.Map<core.String, core.dynamic>)
: null,
roundingMode: json_.containsKey('roundingMode')
? json_['roundingMode'] as core.String
: null,
scale:
json_.containsKey('scale') ? json_['scale'] as core.String : null,
type: json_.containsKey('type') ? json_['type'] as core.String : null,
);