EntityInfo.fromJson(Map<String, dynamic> json) : id = EntityId.fromJson(json['id']), name = json['name'];