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