@override Object toJson() => { if (uri.isNotDefault) 'uri': uri, if (generation.isNotDefault) 'generation': generation, };