ListApprovedOriginsResponse.fromJson constructor

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

Implementation

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