SchemaColumn.fromJson constructor

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

Implementation

factory SchemaColumn.fromJson(Map<String, Object?> json) => SchemaColumn(
  name: json['name'] as String,
  dataType: json['dataType'] as String,
  schema: json['schema'] as String?,
  tableName: json['tableName'] as String?,
  length: json['length'] as int?,
  numericPrecision: json['numericPrecision'] as int?,
  numericScale: json['numericScale'] as int?,
  nullable: json['nullable'] as bool? ?? true,
  defaultValue: json['defaultValue'] as String?,
  autoIncrement: json['autoIncrement'] as bool? ?? false,
  primaryKey: json['primaryKey'] as bool? ?? false,
  comment: json['comment'] as String?,
  generatedExpression: json['generatedExpression'] as String?,
);