toJson method

Map<String, dynamic> toJson()

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 (restrictionDate != null)
    'restrictionDate': restrictionDate!.toUtc().toIso8601String(),
  if (systemRestricted != null) 'systemRestricted': systemRestricted!,
  if (type != null) 'type': type!,
};