Domain.fromJson constructor

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

Implementation

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