toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final groupId = this.groupId;
  final groupName = this.groupName;
  final ipPermissions = this.ipPermissions;
  final ipPermissionsEgress = this.ipPermissionsEgress;
  final ownerId = this.ownerId;
  final vpcId = this.vpcId;
  return {
    if (groupId != null) 'GroupId': groupId,
    if (groupName != null) 'GroupName': groupName,
    if (ipPermissions != null) 'IpPermissions': ipPermissions,
    if (ipPermissionsEgress != null)
      'IpPermissionsEgress': ipPermissionsEgress,
    if (ownerId != null) 'OwnerId': ownerId,
    if (vpcId != null) 'VpcId': vpcId,
  };
}