createGetterBody method

String createGetterBody (
  1. DartType type,
  2. String name,
  3. String target
)

Implementation

String createGetterBody(DartType type, String name, String target) {
  final codec = getCodec(type);
  return '${codec == null ? "$target['$name']" : "$codec.decode($target['$name'])"};';
}