ConstraintEntity.fromJson constructor

ConstraintEntity.fromJson(
  1. Map json_
)

Implementation

ConstraintEntity.fromJson(core.Map json_)
    : this(
        customFeatures: json_.containsKey('customFeatures')
            ? json_['customFeatures'] as core.Map<core.String, core.dynamic>
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        referenceColumns: json_.containsKey('referenceColumns')
            ? (json_['referenceColumns'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        referenceTable: json_.containsKey('referenceTable')
            ? json_['referenceTable'] as core.String
            : null,
        tableColumns: json_.containsKey('tableColumns')
            ? (json_['tableColumns'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        tableName: json_.containsKey('tableName')
            ? json_['tableName'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );