SqlServerColumn.fromJson constructor

SqlServerColumn.fromJson(
  1. Map json_
)

Implementation

SqlServerColumn.fromJson(core.Map json_)
    : this(
        column: json_.containsKey('column')
            ? json_['column'] 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,
        precision: json_.containsKey('precision')
            ? json_['precision'] as core.int
            : null,
        primaryKey: json_.containsKey('primaryKey')
            ? json_['primaryKey'] as core.bool
            : null,
        scale: json_.containsKey('scale') ? json_['scale'] as core.int : null,
      );