ListPrincipalThingsResponse.fromJson constructor

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

Implementation

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