Backend.fromJson constructor

Backend.fromJson(
  1. Map json_
)

Implementation

Backend.fromJson(core.Map json_)
    : this(
        balancingMode: json_.containsKey('balancingMode')
            ? json_['balancingMode'] as core.String
            : null,
        capacityScaler: json_.containsKey('capacityScaler')
            ? (json_['capacityScaler'] as core.num).toDouble()
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        failover: json_.containsKey('failover')
            ? json_['failover'] as core.bool
            : null,
        group:
            json_.containsKey('group') ? json_['group'] as core.String : null,
        maxConnections: json_.containsKey('maxConnections')
            ? json_['maxConnections'] as core.int
            : null,
        maxConnectionsPerEndpoint:
            json_.containsKey('maxConnectionsPerEndpoint')
                ? json_['maxConnectionsPerEndpoint'] as core.int
                : null,
        maxConnectionsPerInstance:
            json_.containsKey('maxConnectionsPerInstance')
                ? json_['maxConnectionsPerInstance'] as core.int
                : null,
        maxRate: json_.containsKey('maxRate')
            ? json_['maxRate'] as core.int
            : null,
        maxRatePerEndpoint: json_.containsKey('maxRatePerEndpoint')
            ? (json_['maxRatePerEndpoint'] as core.num).toDouble()
            : null,
        maxRatePerInstance: json_.containsKey('maxRatePerInstance')
            ? (json_['maxRatePerInstance'] as core.num).toDouble()
            : null,
        maxUtilization: json_.containsKey('maxUtilization')
            ? (json_['maxUtilization'] as core.num).toDouble()
            : null,
        preference: json_.containsKey('preference')
            ? json_['preference'] as core.String
            : null,
      );