DescribeThesaurusResponse.fromJson constructor

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

Implementation

factory DescribeThesaurusResponse.fromJson(Map<String, dynamic> json) {
  return DescribeThesaurusResponse(
    createdAt: timeStampFromJson(json['CreatedAt']),
    description: json['Description'] as String?,
    errorMessage: json['ErrorMessage'] as String?,
    fileSizeBytes: json['FileSizeBytes'] as int?,
    id: json['Id'] as String?,
    indexId: json['IndexId'] as String?,
    name: json['Name'] as String?,
    roleArn: json['RoleArn'] as String?,
    sourceS3Path: json['SourceS3Path'] != null
        ? S3Path.fromJson(json['SourceS3Path'] as Map<String, dynamic>)
        : null,
    status: (json['Status'] as String?)?.toThesaurusStatus(),
    synonymRuleCount: json['SynonymRuleCount'] as int?,
    termCount: json['TermCount'] as int?,
    updatedAt: timeStampFromJson(json['UpdatedAt']),
  );
}