Map<String, String> toMap() { final cN = name; final cP = piece; final cT = target; return { 'c_n': cN, if (cP != null) 'c_p': cP, if (cT != null) 'c_t': cT, }; }