factory SourceDTO.fromJson(Map<String, Object?> json) { return SourceDTO( type: json[r'type'] != null ? SourceDTOType.fromValue(json[r'type']! as String) : null, ); }