fromEncodable property Null safety

dynamic Function(Map<String, dynamic> json) fromEncodable
override

Returns the encoder for the generated class

Implementation

@override
Function(Map<String, dynamic> json) get fromEncodable =>
    (Map<String, dynamic> json) => SampleClass.fromJson(json);