toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'created_at'] = this.createdAt.toUtc().toIso8601String();
  if (this.expires != null) {
    json[r'expires'] = this.expires!.toUtc().toIso8601String();
  } else {
    json[r'expires'] = null;
  }
  if (this.target != null) {
    json[r'target'] = this.target;
  } else {
    json[r'target'] = null;
  }
    json[r'updated_at'] = this.updatedAt.toUtc().toIso8601String();
  if (this.user != null) {
    json[r'user'] = this.user;
  } else {
    json[r'user'] = null;
  }
  return json;
}