toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (action != null) 'action': action!,
      if (createTime != null) 'createTime': createTime!,
      if (description != null) 'description': description!,
      if (destinationIpRanges != null)
        'destinationIpRanges': destinationIpRanges!,
      if (destinationPorts != null) 'destinationPorts': destinationPorts!,
      if (ipProtocol != null) 'ipProtocol': ipProtocol!,
      if (name != null) 'name': name!,
      if (priority != null) 'priority': priority!,
      if (sourceIpRanges != null) 'sourceIpRanges': sourceIpRanges!,
      if (sourcePorts != null) 'sourcePorts': sourcePorts!,
      if (state != null) 'state': state!,
      if (uid != null) 'uid': uid!,
      if (updateTime != null) 'updateTime': updateTime!,
    };