DescribeFaqResponse.fromJson constructor

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

Implementation

factory DescribeFaqResponse.fromJson(Map<String, dynamic> json) {
  return DescribeFaqResponse(
    createdAt: timeStampFromJson(json['CreatedAt']),
    description: json['Description'] as String?,
    errorMessage: json['ErrorMessage'] as String?,
    fileFormat: (json['FileFormat'] as String?)?.toFaqFileFormat(),
    id: json['Id'] as String?,
    indexId: json['IndexId'] as String?,
    name: json['Name'] as String?,
    roleArn: json['RoleArn'] as String?,
    s3Path: json['S3Path'] != null
        ? S3Path.fromJson(json['S3Path'] as Map<String, dynamic>)
        : null,
    status: (json['Status'] as String?)?.toFaqStatus(),
    updatedAt: timeStampFromJson(json['UpdatedAt']),
  );
}