DescribeThingRegistrationTaskResponse.fromJson constructor

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

Implementation

factory DescribeThingRegistrationTaskResponse.fromJson(
    Map<String, dynamic> json) {
  return DescribeThingRegistrationTaskResponse(
    creationDate: timeStampFromJson(json['creationDate']),
    failureCount: json['failureCount'] as int?,
    inputFileBucket: json['inputFileBucket'] as String?,
    inputFileKey: json['inputFileKey'] as String?,
    lastModifiedDate: timeStampFromJson(json['lastModifiedDate']),
    message: json['message'] as String?,
    percentageProgress: json['percentageProgress'] as int?,
    roleArn: json['roleArn'] as String?,
    status: (json['status'] as String?)?.toStatus(),
    successCount: json['successCount'] as int?,
    taskId: json['taskId'] as String?,
    templateBody: json['templateBody'] as String?,
  );
}