toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (id != null) {
    _json[r'id'] = id;
  }
  if (type != null) {
    _json[r'type'] = type;
  }
  if (createAt != null) {
    _json[r'create_at'] = createAt;
  }
  if (startAt != null) {
    _json[r'start_at'] = startAt;
  }
  if (lastActivityAt != null) {
    _json[r'last_activity_at'] = lastActivityAt;
  }
  if (status != null) {
    _json[r'status'] = status;
  }
  if (progress != null) {
    _json[r'progress'] = progress;
  }
  if (data != null) {
    _json[r'data'] = data;
  }
  return _json;
}