DatabaseMigrationVersion.fromJson constructor

DatabaseMigrationVersion.fromJson(
  1. Map<String, dynamic> jsonSerialization
)

Implementation

factory DatabaseMigrationVersion.fromJson(
    Map<String, dynamic> jsonSerialization) {
  return DatabaseMigrationVersion(
    id: jsonSerialization['id'] as int?,
    module: jsonSerialization['module'] as String,
    version: jsonSerialization['version'] as String,
    timestamp: jsonSerialization['timestamp'] == null
        ? null
        : _i1.DateTimeJsonExtension.fromJson(jsonSerialization['timestamp']),
  );
}