Attachment.fromJson constructor
Implementation
factory Attachment.fromJson(Map<String, dynamic> json) {
return Attachment(
details: (json['details'] as List?)
?.whereNotNull()
.map((e) => KeyValuePair.fromJson(e as Map<String, dynamic>))
.toList(),
id: json['id'] as String?,
status: json['status'] as String?,
type: json['type'] as String?,
);
}