toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final connectionProperties = this.connectionProperties;
  final connectionType = this.connectionType;
  final name = this.name;
  final description = this.description;
  final matchCriteria = this.matchCriteria;
  final physicalConnectionRequirements = this.physicalConnectionRequirements;
  return {
    'ConnectionProperties':
        connectionProperties.map((k, e) => MapEntry(k.toValue(), e)),
    'ConnectionType': connectionType.toValue(),
    'Name': name,
    if (description != null) 'Description': description,
    if (matchCriteria != null) 'MatchCriteria': matchCriteria,
    if (physicalConnectionRequirements != null)
      'PhysicalConnectionRequirements': physicalConnectionRequirements,
  };
}