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,
      );