fromList static method

List<Attachment> fromList(
  1. List? items
)

Implementation

static List<Attachment> fromList(List<dynamic>? items) {
  final List<Attachment> attachments = <Attachment>[];
  if (items == null) {
    return attachments;
  }
  for (final dynamic item in items) {
    attachments.add(new Attachment.fromJson(item));
  }
  return attachments;
}