ListServicesResponse.fromJson constructor

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

Implementation

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