GetApiMappingsResponse.fromJson constructor

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

Implementation

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