PutEventsResponse.fromJson constructor

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

Implementation

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