ListThingsInThingGroupResponse.fromJson constructor

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

Implementation

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