toDartDefine method
toJson as a --dart-define value: base64url, because the flutter
tool splits a define's value at commas and a JSON object is full of
them.
Implementation
String toDartDefine() =>
base64Url.encode(utf8.encode(jsonEncode(toJson()))).replaceAll('=', '');