DescribeDiscovererResponse.fromJson constructor

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

Implementation

factory DescribeDiscovererResponse.fromJson(Map<String, dynamic> json) {
  return DescribeDiscovererResponse(
    description: json['Description'] as String?,
    discovererArn: json['DiscovererArn'] as String?,
    discovererId: json['DiscovererId'] as String?,
    sourceArn: json['SourceArn'] as String?,
    state: (json['State'] as String?)?.toDiscovererState(),
    tags: (json['tags'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
  );
}