generate method

void generate(
  1. IndentingWriter out
)

Implementation

void generate(IndentingWriter out) {
  out.addBlock(
      'abstract class $classname extends '
          '$_parentClass {',
      '}', () {
    _generateStubs(out);
    _generateRequestMethod(out);
    _generateDispatchMethod(out);
    _generateMoreClassMembers(out);
    out.println(
        '$coreImportPrefix.Map<$coreImportPrefix.String, $coreImportPrefix.dynamic> get \$json => $jsonConstant;');
    out.println(
        '$coreImportPrefix.Map<$coreImportPrefix.String, $coreImportPrefix.Map<$coreImportPrefix.String,'
        ' $coreImportPrefix.dynamic>> get \$messageJson => $messageJsonConstant;');
  });
  out.println();
}