generate method

  1. @override
String generate(
  1. List<ClassMember> members
)

Implementation

@override
String generate(List<ClassMember> members) {
  return '''
  String toJson() => json.encode(toMap());
  static $className? fromJson(String data) => $className.fromMap(json.decode(data));
  ''';
}