BatchDeleteImageResponse.fromJson constructor

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

Implementation

factory BatchDeleteImageResponse.fromJson(Map<String, dynamic> json) {
  return BatchDeleteImageResponse(
    failures: (json['failures'] as List?)
        ?.whereNotNull()
        .map((e) => ImageFailure.fromJson(e as Map<String, dynamic>))
        .toList(),
    imageIds: (json['imageIds'] as List?)
        ?.whereNotNull()
        .map((e) => ImageIdentifier.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}