TableConstraints.fromJson constructor

TableConstraints.fromJson(
  1. Map json_
)

Implementation

TableConstraints.fromJson(core.Map json_)
    : this(
        foreignKeys: json_.containsKey('foreignKeys')
            ? (json_['foreignKeys'] as core.List)
                .map((value) => TableConstraintsForeignKeys.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        primaryKey: json_.containsKey('primaryKey')
            ? TableConstraintsPrimaryKey.fromJson(
                json_['primaryKey'] as core.Map<core.String, core.dynamic>)
            : null,
      );