BrokerSummary.fromJson constructor

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

Implementation

factory BrokerSummary.fromJson(Map<String, dynamic> json) {
  return BrokerSummary(
    brokerArn: json['brokerArn'] as String?,
    brokerId: json['brokerId'] as String?,
    brokerName: json['brokerName'] as String?,
    brokerState: (json['brokerState'] as String?)?.toBrokerState(),
    created: timeStampFromJson(json['created']),
    deploymentMode: (json['deploymentMode'] as String?)?.toDeploymentMode(),
    engineType: (json['engineType'] as String?)?.toEngineType(),
    hostInstanceType: json['hostInstanceType'] as String?,
  );
}