Database.fromJson constructor

Database.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Database.fromJson(Map<String, dynamic> json) {
  return Database(
    id: DatabaseId.fromJson(json['id'] as String),
    domain: json['domain'] as String,
    name: json['name'] as String,
    version: json['version'] as String,
  );
}