toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() {
  final ownerRestricted = this.ownerRestricted;
  final readOnly = this.readOnly;
  final reason = this.reason;
  final restrictingUser = this.restrictingUser;
  final restrictionDate = this.restrictionDate;
  final systemRestricted = this.systemRestricted;
  final type = this.type;
  return {
    'ownerRestricted': ?ownerRestricted,
    'readOnly': ?readOnly,
    'reason': ?reason,
    'restrictingUser': ?restrictingUser,
    'restrictionDate': ?restrictionDate?.toUtc().toIso8601String(),
    'systemRestricted': ?systemRestricted,
    'type': ?type,
  };
}