toJson method
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 restrictionTime = this.restrictionTime;
final systemRestricted = this.systemRestricted;
final type = this.type;
return {
'ownerRestricted': ?ownerRestricted,
'readOnly': ?readOnly,
'reason': ?reason,
'restrictingUser': ?restrictingUser,
'restrictionTime': ?restrictionTime?.toUtc().toIso8601String(),
'systemRestricted': ?systemRestricted,
'type': ?type,
};
}