@override Object serialize() { var uri = uriString; if (uri.isNotEmpty) { return uri; } // return inner map return _wrapper.toMap(); }