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