MysqlTable.fromJson constructor

MysqlTable.fromJson(
  1. Map _json
)

Implementation

MysqlTable.fromJson(core.Map _json)
    : this(
        mysqlColumns: _json.containsKey('mysqlColumns')
            ? (_json['mysqlColumns'] as core.List)
                .map((value) => MysqlColumn.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        tableName: _json.containsKey('tableName')
            ? _json['tableName'] as core.String
            : null,
      );