Closed
Description
Is inheritance supported? I've tried the following example but got an exception, is there something i miss?:
@JsonSerializable()
abstract class Base extends Object with _$BaseSerializerMixin {
Base(this.value);
num value;
factory Base.fromJson(Map<String, dynamic> json) => _$BaseFromJson(json);
}
@JsonSerializable()
class Sub extends Base with _$SubSerializerMixin {
Sub(num value, this.subVal): super(value);
num subVal;
factory Sub.fromJson(Map<String, dynamic> json) => _$SubFromJson(json);
}
exception thrown:
Unsupported operation: Cannot populate the required constructor argument: value.
Metadata
Metadata
Assignees
Labels
No labels