toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.expiry != null) {
    json[r'expiry'] = this.expiry!.toUtc().toIso8601String();
  } else {
    json[r'expiry'] = null;
  }
  if (this.meta != null) {
    json[r'meta'] = this.meta;
  } else {
    json[r'meta'] = null;
  }
  return json;
}