toJson method

  1. @override
Map<String, dynamic> toJson()
inherited

Methods for Json serialization.

Used to convert ModelFieldValue values to Json in the json_serializable package.

Jsonシリアライズを行うためのメソッド。

json_serializableのパッケージでModelFieldValueの値をJsonに変換する際に利用します。

Implementation

@override
Map<String, dynamic> toJson() => {
      kTypeFieldKey: (ModelRefBase).toString(),
      ModelRefBase._kRefKey: modelQuery.path.trimQuery().trimString("/"),
    };