ColumnDriverOverride.fromJson constructor

ColumnDriverOverride.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory ColumnDriverOverride.fromJson(Map<String, Object?> json) {
  return ColumnDriverOverride(
    type: json['type'] == null
        ? null
        : ColumnType.fromJson(json['type'] as Map<String, Object?>),
    sqlType: json['sqlType'] as String?,
    defaultValue: json['default'] == null
        ? null
        : ColumnDefault.fromJson(json['default'] as Map<String, Object?>),
    collation: json['collation'] as String?,
    charset: json['charset'] as String?,
  );
}