Communication.fromJson constructor
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?,
);
}