ListMedicalTranscriptionJobsResponse.fromJson constructor

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

Implementation

factory ListMedicalTranscriptionJobsResponse.fromJson(
    Map<String, dynamic> json) {
  return ListMedicalTranscriptionJobsResponse(
    medicalTranscriptionJobSummaries:
        (json['MedicalTranscriptionJobSummaries'] as List?)
            ?.whereNotNull()
            .map((e) => MedicalTranscriptionJobSummary.fromJson(
                e as Map<String, dynamic>))
            .toList(),
    nextToken: json['NextToken'] as String?,
    status: (json['Status'] as String?)?.toTranscriptionJobStatus(),
  );
}