ListThingTypesResponse.fromJson constructor

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

Implementation

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