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.maxActivations != null) {
    json[r'maxActivations'] = this.maxActivations;
  } else {
    json[r'maxActivations'] = null;
  }
  if (this.maxDeactivations != null) {
    json[r'maxDeactivations'] = this.maxDeactivations;
  } else {
    json[r'maxDeactivations'] = null;
  }
  return json;
}