ColumnInfo.fromJson constructor

ColumnInfo.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ColumnInfo.fromJson(Map<String, dynamic> json) {
  return ColumnInfo(
    name: json['Name'] as String,
    type: json['Type'] as String,
    caseSensitive: json['CaseSensitive'] as bool?,
    catalogName: json['CatalogName'] as String?,
    label: json['Label'] as String?,
    nullable: (json['Nullable'] as String?)?.toColumnNullable(),
    precision: json['Precision'] as int?,
    scale: json['Scale'] as int?,
    schemaName: json['SchemaName'] as String?,
    tableName: json['TableName'] as String?,
  );
}