fromJsonString static method

CustomBlockEmbed fromJsonString(
  1. String data
)

Implementation

static CustomBlockEmbed fromJsonString(String data) {
  final embeddable = Embeddable.fromJson(jsonDecode(data));
  return CustomBlockEmbed(embeddable.type, embeddable.data);
}