>>> class VeryInterestingThing { factory VeryInterestingThing.fromJson( mylibrarythathasalongname.JsonData jsonData) => new VeryInterestingThing( otherlibrary.InterestingState.fromJson(jsonData.encodedState)); } <<< 3.7 class VeryInterestingThing { factory VeryInterestingThing.fromJson( mylibrarythathasalongname.JsonData jsonData, ) => new VeryInterestingThing( otherlibrary.InterestingState.fromJson(jsonData.encodedState), ); }