ListThingRegistrationTaskReportsResponse.fromJson constructor

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

Implementation

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