TableEntity.fromJson constructor
TableEntity.fromJson(
- Map json_
Implementation
TableEntity.fromJson(core.Map json_)
: this(
columns: json_.containsKey('columns')
? (json_['columns'] as core.List)
.map((value) => ColumnEntity.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
comment: json_.containsKey('comment')
? json_['comment'] as core.String
: null,
constraints: json_.containsKey('constraints')
? (json_['constraints'] as core.List)
.map((value) => ConstraintEntity.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
customFeatures: json_.containsKey('customFeatures')
? json_['customFeatures'] as core.Map<core.String, core.dynamic>
: null,
indices: json_.containsKey('indices')
? (json_['indices'] as core.List)
.map((value) => IndexEntity.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
triggers: json_.containsKey('triggers')
? (json_['triggers'] as core.List)
.map((value) => TriggerEntity.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);