DescribeEventsForOrganizationResponse.fromJson constructor

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

Implementation

factory DescribeEventsForOrganizationResponse.fromJson(
    Map<String, dynamic> json) {
  return DescribeEventsForOrganizationResponse(
    events: (json['events'] as List?)
        ?.whereNotNull()
        .map((e) => OrganizationEvent.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['nextToken'] as String?,
  );
}