ListRobotsResponse.fromJson constructor

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

Implementation

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