TemporaryAttachments.fromJson constructor

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

Implementation

factory TemporaryAttachments.fromJson(Map<String, Object?> json) {
  return TemporaryAttachments(
    temporaryAttachments: (json[r'temporaryAttachments'] as List<Object?>?)
            ?.map((i) => TemporaryAttachment.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
  );
}