PutPartnerEventsResponse.fromJson constructor

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

Implementation

factory PutPartnerEventsResponse.fromJson(Map<String, dynamic> json) {
  return PutPartnerEventsResponse(
    entries: (json['Entries'] as List?)
        ?.whereNotNull()
        .map((e) =>
            PutPartnerEventsResultEntry.fromJson(e as Map<String, dynamic>))
        .toList(),
    failedEntryCount: json['FailedEntryCount'] as int?,
  );
}