ReportingApiEndpointsChangedForOriginEvent.fromJson constructor

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

Implementation

factory ReportingApiEndpointsChangedForOriginEvent.fromJson(
  Map<String, dynamic> json,
) {
  return ReportingApiEndpointsChangedForOriginEvent(
    origin: json['origin'] as String,
    endpoints:
        (json['endpoints'] as List)
            .map(
              (e) => ReportingApiEndpoint.fromJson(e as Map<String, dynamic>),
            )
            .toList(),
  );
}