toInternal method

Future<InternalContent> toInternal()

Implementation

Future<InternalContent> toInternal() async {
 final res = await Future.wait(parts.map((part) async => await part.toInternal()).toList());
  return InternalContent(role: role,parts:res );
}