isGenerated method

  1. @override
bool isGenerated(
  1. ClassMember member
)

Implementation

@override
bool isGenerated(ClassMember member) {
  return member is MethodDeclaration &&
      (getMethodName(member) == 'toJson' ||
          getMethodName(member) == 'fromJson');
}