ListThingsResponse.fromJson constructor

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

Implementation

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