ListReceivedLicensesResponse.fromJson constructor

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

Implementation

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