printDecoderMethod property

String get printDecoderMethod

Output decoding method line.

Implementation

String get printDecoderMethod {
  if (this is CustomType) {
    return "(dynamic value) => JsonObject.fromMap(data: value as Map<String, dynamic>).to$className";
  } else if (this is EnumType) {
    return "(dynamic value) => value.to$className";
  } else {
    return "";
  }
}