CreateTable.fromMap constructor

CreateTable.fromMap(
  1. Map<String, dynamic> map
)

Creates a CreateTable from a map representation.

Implementation

factory CreateTable.fromMap(Map<String, dynamic> map) {
  return CreateTable(
    TableInfo.fromMap(map['table'] as Map<String, dynamic>),
    ifNotExists: map['ifNotExists'] as bool? ?? false,
  );
}