Communication.fromJson constructor

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

Implementation

factory Communication.fromJson(Map<String, dynamic> json) {
  return Communication(
    attachmentSet: (json['attachmentSet'] as List?)
        ?.whereNotNull()
        .map((e) => AttachmentDetails.fromJson(e as Map<String, dynamic>))
        .toList(),
    body: json['body'] as String?,
    caseId: json['caseId'] as String?,
    submittedBy: json['submittedBy'] as String?,
    timeCreated: json['timeCreated'] as String?,
  );
}