ImageInserter.fromJson constructor

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

Implementation

factory ImageInserter.fromJson(Map<String, dynamic> json) {
  return ImageInserter(
    insertableImages: (json['insertableImages'] as List?)
        ?.whereNotNull()
        .map((e) => InsertableImage.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}