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