CodeBlockMeta.fromJson constructor

CodeBlockMeta.fromJson(
  1. Map<String, dynamic> json
)

Creates from JSON map.

Implementation

factory CodeBlockMeta.fromJson(Map<String, dynamic> json) {
  return CodeBlockMeta(
    language: json['language'] as String?,
    filename: json['filename'] as String?,
    isInline: json['isInline'] as bool? ?? false,
  );
}