DescribeEventDetailsResponse.fromJson constructor

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

Implementation

factory DescribeEventDetailsResponse.fromJson(Map<String, dynamic> json) {
  return DescribeEventDetailsResponse(
    failedSet: (json['failedSet'] as List?)
        ?.whereNotNull()
        .map((e) => EventDetailsErrorItem.fromJson(e as Map<String, dynamic>))
        .toList(),
    successfulSet: (json['successfulSet'] as List?)
        ?.whereNotNull()
        .map((e) => EventDetails.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}