ListCustomRoutingAcceleratorsResponse.fromJson constructor

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

Implementation

factory ListCustomRoutingAcceleratorsResponse.fromJson(
    Map<String, dynamic> json) {
  return ListCustomRoutingAcceleratorsResponse(
    accelerators: (json['Accelerators'] as List?)
        ?.whereNotNull()
        .map((e) =>
            CustomRoutingAccelerator.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}