INNER CODE UNIT · Dart

FixnumTypeInfoDecorator

k-paxian/dart-json-mapper · adapters/fixnum/lib/dart_json_mapper_fixnum.dart:15

class FixnumTypeInfoDecorator extends DefaultTypeInfoDecorator {
  @override
  Type detectTypeByName(String? name) {
    switch (name) {
      case 'Int32':
        return Int32;
      case 'Int64':
        return Int64;
      default:
        return super.detectTypeByName(name);
    }
  }
}

final int32Converter = Int32Converter();

/// [Int32] converter
class Int32Converter implements ICustomConverter<Int32> {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…