GetConnectorResult.fromMap constructor

GetConnectorResult.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory GetConnectorResult.fromMap(Map<String, dynamic> map) {
  return GetConnectorResult(
    connectedProjects: (map['connectedProjects'] as List).cast<String>(),
    ipCidrRange: map['ipCidrRange'] as String,
    machineType: map['machineType'] as String,
    maxInstances: map['maxInstances'] as int,
    maxThroughput: map['maxThroughput'] as int,
    minInstances: map['minInstances'] as int,
    minThroughput: map['minThroughput'] as int,
    name: map['name'] as String,
    network: map['network'] as String,
    state: map['state'] as String,
    subnet: SubnetResponse.fromMap((map['subnet']! as Map).cast<String, dynamic>()),
  );
}