toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final componentId = this.componentId;
  final componentType = this.componentType;
  final egress = this.egress;
  final ingress = this.ingress;
  return {
    if (componentId != null) 'ComponentId': componentId,
    if (componentType != null) 'ComponentType': componentType,
    if (egress != null) 'Egress': egress,
    if (ingress != null) 'Ingress': ingress,
  };
}