File tree Expand file tree Collapse file tree
packages/dart_mappable/lib/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -103,8 +103,12 @@ abstract class MapperContainer {
103103 PrimitiveMapper <Object >((v) => v, dynamic ),
104104 PrimitiveMapper <Object >((v) => v, Object ),
105105 PrimitiveMapper <String >((v) => v.toString ()),
106- PrimitiveMapper <int >((v) => v is num ? v.round () : num .parse (v.toString ()).round ()),
107- PrimitiveMapper <double >((v) => v is num ? v.toDouble () : double .parse (v.toString ())),
106+ PrimitiveMapper <int >(
107+ (v) => v is num ? v.round () : num .parse (v.toString ()).round (),
108+ ),
109+ PrimitiveMapper <double >(
110+ (v) => v is num ? v.toDouble () : double .parse (v.toString ()),
111+ ),
108112 PrimitiveMapper <num >((v) => v is num ? v : num .parse (v.toString ()), num ),
109113 PrimitiveMapper <bool >((v) => v is num ? v != 0 : v.toString () == 'true' ),
110114 DateTimeMapper (),
You can’t perform that action at this time.
0 commit comments