CreateAssociationBatchResult.fromJson constructor

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

Implementation

factory CreateAssociationBatchResult.fromJson(Map<String, dynamic> json) {
  return CreateAssociationBatchResult(
    failed: (json['Failed'] as List?)
        ?.whereNotNull()
        .map((e) =>
            FailedCreateAssociation.fromJson(e as Map<String, dynamic>))
        .toList(),
    successful: (json['Successful'] as List?)
        ?.whereNotNull()
        .map(
            (e) => AssociationDescription.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}