toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'id'] = this.id;
  json[r'project'] = this.project;
  json[r'user'] = this.user;
  if (this.role != null) {
    json[r'role'] = this.role;
  } else {
    json[r'role'] = null;
  }
  json[r'created'] = this.created.toUtc().toIso8601String();
  return json;
}