toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final ec2SshKey = this.ec2SshKey;
  final sourceSecurityGroups = this.sourceSecurityGroups;
  return {
    if (ec2SshKey != null) 'ec2SshKey': ec2SshKey,
    if (sourceSecurityGroups != null)
      'sourceSecurityGroups': sourceSecurityGroups,
  };
}