O fromAgent(Map<String, dynamic> s) => throw UnimplementedError( "You need to implement fromAgent in $runtimeType to convert '$s' to an $O object!", );