Body.fromJson constructor

Body.fromJson(
  1. Map json_
)

Implementation

Body.fromJson(core.Map json_)
    : this(
        content: json_.containsKey('content')
            ? (json_['content'] as core.List)
                .map((value) => StructuralElement.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );