instanceFieldsAndMethods property

  1. @override
List<String> get instanceFieldsAndMethods

Any instance fields that should be copied to the adapter. Should terminate in ; if required.

Implementation

@override
List<String> get instanceFieldsAndMethods {
  var toKey = (fields as RestFields).config?.toKey?.trim();

  if (toKey != null) toKey = "'$toKey'";

  return ['@override\nfinal String? toKey = $toKey;'];
}