ListNamedShadowsForThingResponse.fromJson constructor

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

Implementation

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