toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (ownerRestricted != null) 'ownerRestricted': ownerRestricted!,
if (readOnly != null) 'readOnly': readOnly!,
if (reason != null) 'reason': reason!,
if (restrictingUser != null) 'restrictingUser': restrictingUser!,
if (restrictionTime != null)
'restrictionTime': restrictionTime!.toUtc().toIso8601String(),
if (systemRestricted != null) 'systemRestricted': systemRestricted!,
if (type != null) 'type': type!,
};