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