toStringMethod top-level property
Method
toStringMethod
final
Implementation
final toStringMethod = Method(
(b) => b
..name = 'toString'
..annotations = ListBuilder([const CodeExpression(Code('override'))])
..body = const Code('return toJson().toString();')
..returns = const Reference('String'),
);