ListEntitlementsResponse.fromJson constructor

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

Implementation

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