SourceDTO.fromJson constructor

SourceDTO.fromJson(
  1. Map<String, Object?> json
)

Implementation

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