ListLicensesResponse.fromJson constructor

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

Implementation

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