factory Source.fromJson(Map<String, Object?> json) => Source( type: json['type'] as String, id: json['id'] as String?, version: json['version'] as int?, );