core.Map<core.String, core.dynamic> toJson() => { if (demoteMasterContext != null) 'demoteMasterContext': demoteMasterContext!.toJson(), };