ListThingGroupsForThingResponse.fromJson constructor

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

Implementation

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