MysqlDatabase.fromJson constructor

MysqlDatabase.fromJson(
  1. Map _json
)

Implementation

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