MysqlColumn.fromJson constructor

MysqlColumn.fromJson(
  1. Map json_
)

Implementation

MysqlColumn.fromJson(core.Map json_)
    : this(
        collation: json_.containsKey('collation')
            ? json_['collation'] as core.String
            : null,
        columnName: json_.containsKey('columnName')
            ? json_['columnName'] as core.String
            : null,
        dataType: json_.containsKey('dataType')
            ? json_['dataType'] as core.String
            : null,
        length:
            json_.containsKey('length') ? json_['length'] as core.int : null,
        nullable: json_.containsKey('nullable')
            ? json_['nullable'] as core.bool
            : null,
        ordinalPosition: json_.containsKey('ordinalPosition')
            ? json_['ordinalPosition'] as core.int
            : null,
        primaryKey: json_.containsKey('primaryKey')
            ? json_['primaryKey'] as core.bool
            : null,
      );