fieldsJson property
Its own fields, as JSON (sparse): what toJson writes besides type
and the common fields. An action class outside this library overrides
this.
Implementation
@override
Json get fieldsJson => {
'operation': operation.name,
if (email.isNotEmpty) 'email': email,
if (password.isNotEmpty) 'password': password,
if (displayName.isNotEmpty) 'displayName': displayName,
if (photoUrl.isNotEmpty) 'photoUrl': photoUrl,
if (currentPassword.isNotEmpty) 'currentPassword': currentPassword,
if (errorVariable.isNotEmpty) 'errorVariable': errorVariable,
};