toJson method
Implementation
Map<String, dynamic> toJson() {
final arn = this.arn;
final createDate = this.createDate;
final instanceProfileId = this.instanceProfileId;
final instanceProfileName = this.instanceProfileName;
final path = this.path;
final roles = this.roles;
return {
if (arn != null) 'Arn': arn,
if (createDate != null) 'CreateDate': createDate,
if (instanceProfileId != null) 'InstanceProfileId': instanceProfileId,
if (instanceProfileName != null)
'InstanceProfileName': instanceProfileName,
if (path != null) 'Path': path,
if (roles != null) 'Roles': roles,
};
}