toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final name = this.name;
  final protocolPolicy = this.protocolPolicy;
  final regionName = this.regionName;
  return {
    if (name != null) 'name': name,
    if (protocolPolicy != null) 'protocolPolicy': protocolPolicy.toValue(),
    if (regionName != null) 'regionName': regionName.toValue(),
  };
}