DescribeThingGroupResponse.fromJson constructor

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

Implementation

factory DescribeThingGroupResponse.fromJson(Map<String, dynamic> json) {
  return DescribeThingGroupResponse(
    indexName: json['indexName'] as String?,
    queryString: json['queryString'] as String?,
    queryVersion: json['queryVersion'] as String?,
    status: (json['status'] as String?)?.toDynamicGroupStatus(),
    thingGroupArn: json['thingGroupArn'] as String?,
    thingGroupId: json['thingGroupId'] as String?,
    thingGroupMetadata: json['thingGroupMetadata'] != null
        ? ThingGroupMetadata.fromJson(
            json['thingGroupMetadata'] as Map<String, dynamic>)
        : null,
    thingGroupName: json['thingGroupName'] as String?,
    thingGroupProperties: json['thingGroupProperties'] != null
        ? ThingGroupProperties.fromJson(
            json['thingGroupProperties'] as Map<String, dynamic>)
        : null,
    version: json['version'] as int?,
  );
}