ListThingGroupsResponse.fromJson constructor

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

Implementation

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