toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final groupId = this.groupId;
  final groupName = this.groupName;
  final peeringStatus = this.peeringStatus;
  final userId = this.userId;
  final vpcId = this.vpcId;
  final vpcPeeringConnectionId = this.vpcPeeringConnectionId;
  return {
    if (groupId != null) 'GroupId': groupId,
    if (groupName != null) 'GroupName': groupName,
    if (peeringStatus != null) 'PeeringStatus': peeringStatus,
    if (userId != null) 'UserId': userId,
    if (vpcId != null) 'VpcId': vpcId,
    if (vpcPeeringConnectionId != null)
      'VpcPeeringConnectionId': vpcPeeringConnectionId,
  };
}