toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'object'] = this.object;
json[r'id'] = this.id;
if (this.organizationId != null) {
json[r'organization_id'] = this.organizationId;
} else {
json[r'organization_id'] = null;
}
json[r'instance_id'] = this.instanceId;
json[r'source_role_set_id'] = this.sourceRoleSetId;
if (this.destRoleSetId != null) {
json[r'dest_role_set_id'] = this.destRoleSetId;
} else {
json[r'dest_role_set_id'] = null;
}
json[r'trigger_type'] = this.triggerType;
json[r'status'] = this.status;
json[r'migrated_members'] = this.migratedMembers;
if (this.mappings != null) {
json[r'mappings'] = this.mappings;
} else {
json[r'mappings'] = null;
}
if (this.startedAt != null) {
json[r'started_at'] = this.startedAt;
} else {
json[r'started_at'] = null;
}
if (this.completedAt != null) {
json[r'completed_at'] = this.completedAt;
} else {
json[r'completed_at'] = null;
}
json[r'created_at'] = this.createdAt;
json[r'updated_at'] = this.updatedAt;
return json;
}