WriteResult.fromMap constructor
Implementation
WriteResult.fromMap(
WriteCommandType writeCommandType, Map<String, dynamic> result)
: super.fromMap(writeCommandType, result) {
if (result[keyWriteErrors] != null &&
(result[keyWriteErrors] as List).isNotEmpty) {
writeError = WriteError.fromMap(
<String, Object>{...?(result[keyWriteErrors] as List).first});
}
}